//
//  PhotoSummaryParser.swift
//  StravaZpot
//
//  Created by Tomás Ruiz López on 31/10/16.
//  Copyright © 2016 SweetZpot AS. All rights reserved.
//

import Foundation
import SwiftyJSON

public class PhotoSummaryParser : Parser {
    public func from(json: JSON) -> PhotoSummary {
        return PhotoSummary(count : json["count"].int!,
                            primary : json["primary"].primaryPhoto!)
    }
}
